package com.dingup.provider.mapper;

import com.dingup.api.model.sys.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SysRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> getRolesByUserId(String userId);

    List<SysRole> getAll();

    Integer getRoleUserNumByRoleId(Integer roleId);

    List<SysRole> getByCreateUserIds(@Param("createUserIds") List<String> createUserIds);

    SysRole getByRoleName(String roleName);
}